import request from '@/utils/request'

// 查询家政列表
export function listEconomics(query) {
  return request({
    url: '/serve/economics/list',
    method: 'get',
    params: query
  })
}

// 查询家政详细
export function getEconomics(id) {
  return request({
    url: '/serve/economics/' + id,
    method: 'get'
  })
}

// 新增家政
export function addEconomics(data) {
  return request({
    url: '/serve/economics',
    method: 'post',
    data: data
  })
}

// 修改家政
export function updateEconomics(data) {
  return request({
    url: '/serve/economics',
    method: 'put',
    data: data
  })
}

// 删除家政
export function delEconomics(id) {
  return request({
    url: '/serve/economics/' + id,
    method: 'delete'
  })
}
